<?php
class erpapi_errcode{

    public $errcode;
    public function __construct(){
        $this->errcode = array(
            'shop'  =>  $this->shop,
            'wms'   =>  $this->wms,
        );
    }

    public function getErrcode($channel_type)
    {
        return $this->errcode[$channel_type];
    }

    private $shop=array(
        'G40012'   =>   array('primary_bn'=>'delivery_bn', 'obj_type'=>'JDDELIVERY', 'retry'=>1),
    );



    private $wms = array(
        'e00090'        =>   array( 'retry'=>1 ),
        'ERP00090'      =>   array( 'retry'=>1 ),
        'W30012'        =>   array('primary_bn'=>'delivery_bn', 'obj_type'=>'deliveryship', 'retry'=>1),
    );

}
